package com.joplus.housekeeper.bean;

import java.util.List;

/**
 * Created by zisheng on 2017/9/20.
 */

public class ChatPastBean {

    /**
     * code : 2000
     * data : [{"from":{"node":"18662286266","resource":"iPhoneXMPP","domain":"izuf680ru630hwunfyowcez"},"to":{"node":"kefu","domain":"izuf680ru630hwunfyowcez"},"type":"1","body":"{\"messageId\":\"1505874709\",\"accountId\":\"acc14867052767895QcB\",\"content\":\"6Zi/6YeM6Lev\",\"gender\":\"1\",\"avatar\":\"http://joplus-images.oss-cn-shanghai.aliyuncs.com/account/acc14867052767895QcB/avatar?1505810382000\",\"from\":\"18662286266\",\"mobile\":\"18662286266\",\"lastTimeStemp\":\"1505874709.021662\",\"type\":\"1\",\"to\":\"kefu\",\"name\":\"剑神卓凌昭\"}","messageDatetime":1505874709030},{"from":{"node":"18662286266","resource":"iPhoneXMPP","domain":"izuf680ru630hwunfyowcez"},"to":{"node":"customer-service1","domain":"izuf680ru630hwunfyowcez"},"type":"1","body":"{\"messageId\":\"1505874738\",\"accountId\":\"acc14867052767895QcB\",\"content\":\"5pys\",\"gender\":\"1\",\"avatar\":\"http://joplus-images.oss-cn-shanghai.aliyuncs.com/account/acc14867052767895QcB/avatar?1505810382000\",\"from\":\"18662286266\",\"mobile\":\"18662286266\",\"lastTimeStemp\":\"1505874737.794564\",\"type\":\"1\",\"to\":\"customer-service1\",\"name\":\"剑神卓凌昭\"}","messageDatetime":1505874737805}]
     * message :
     */

    private String code;
    private String message;
    private List<DataBean> data;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public static class DataBean {
        /**
         * from : {"node":"18662286266","resource":"iPhoneXMPP","domain":"izuf680ru630hwunfyowcez"}
         * to : {"node":"kefu","domain":"izuf680ru630hwunfyowcez"}
         * type : 1
         * body : {"messageId":"1505874709","accountId":"acc14867052767895QcB","content":"6Zi/6YeM6Lev","gender":"1","avatar":"http://joplus-images.oss-cn-shanghai.aliyuncs.com/account/acc14867052767895QcB/avatar?1505810382000","from":"18662286266","mobile":"18662286266","lastTimeStemp":"1505874709.021662","type":"1","to":"kefu","name":"剑神卓凌昭"}
         * messageDatetime : 1505874709030
         */

        private FromBean from;
        private ToBean to;
        private int type;
        private String body;
        private long messageDatetime;

        public FromBean getFrom() {
            return from;
        }

        public void setFrom(FromBean from) {
            this.from = from;
        }

        public ToBean getTo() {
            return to;
        }

        public void setTo(ToBean to) {
            this.to = to;
        }

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }

        public String getBody() {
            return body;
        }

        public void setBody(String body) {
            this.body = body;
        }

        public long getMessageDatetime() {
            return messageDatetime;
        }

        public void setMessageDatetime(long messageDatetime) {
            this.messageDatetime = messageDatetime;
        }

        public static class FromBean {
            /**
             * node : 18662286266
             * resource : iPhoneXMPP
             * domain : izuf680ru630hwunfyowcez
             */

            private String node;
            private String resource;
            private String domain;

            public String getNode() {
                return node;
            }

            public void setNode(String node) {
                this.node = node;
            }

            public String getResource() {
                return resource;
            }

            public void setResource(String resource) {
                this.resource = resource;
            }

            public String getDomain() {
                return domain;
            }

            public void setDomain(String domain) {
                this.domain = domain;
            }
        }

        public static class ToBean {
            /**
             * node : kefu
             * domain : izuf680ru630hwunfyowcez
             */

            private String node;
            private String domain;

            public String getNode() {
                return node;
            }

            public void setNode(String node) {
                this.node = node;
            }

            public String getDomain() {
                return domain;
            }

            public void setDomain(String domain) {
                this.domain = domain;
            }
        }
    }


}
